package com.teach.javafxclient.controller.base;

import javafx.fxml.FXML;
import javafx.scene.control.Label;
import javafx.scene.image.ImageView;
import javafx.scene.shape.Circle;

/**
 * @author Liang Jianlin
 * @date 2024-04-13 15:32
 */
public class StudentItemController {
    @FXML
    public Label name;
    @FXML
    public Label job;
    @FXML
    public Label id;
    @FXML
    public Label gender;
    @FXML
    public ImageView avatar;
    public void initialize(){
        Circle clip = new Circle(avatar.getFitWidth() / 2, avatar.getFitHeight() / 2, Math.min(avatar.getFitWidth() , avatar.getFitHeight()) / 2);
        avatar.setClip(clip);
    }
}
